package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_OperateCreditRunning", catalog="Id")
public class TcwOperateCreditRunning extends BaseEntity<TcwOperateCreditRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="ChangeFzed", nameJava="changeFzed", typeDataBase="decimal")
	private BigDecimal changeFzed;
	@YsField(nameDataBase="Ffzed", nameJava="ffzed", typeDataBase="decimal")
	private BigDecimal ffzed;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwOperateCreditRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcwOperateCreditRunning setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public BigDecimal getChangeFzed() {
		return changeFzed;
	}
	public TcwOperateCreditRunning setChangeFzed(BigDecimal changeFzed) {
		this.changeFzed = changeFzed;
		return this;
	}
	public BigDecimal getFfzed() {
		return ffzed;
	}
	public TcwOperateCreditRunning setFfzed(BigDecimal ffzed) {
		this.ffzed = ffzed;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwOperateCreditRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwOperateCreditRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwOperateCreditRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwOperateCreditRunning tcwOperateCreditRunning(
		String vgsbm,
		BigDecimal changeFzed,
		BigDecimal ffzed,
		Integer status
			) {
		TcwOperateCreditRunning entity = new TcwOperateCreditRunning();
		entity.setVgsbm(vgsbm);
		entity.setChangeFzed(changeFzed);
		entity.setFfzed(ffzed);
		entity.setStatus(status);
		return entity;
	}
}